<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorate="layout">
<head>
    <title>home</title>
</head>
<body>
<!--<h1 layout:fragment="header">Messages : View all</h1>-->
<div layout:fragment="content">
    <div class="box-header with-border">
        <h3 class="box-title">枚举值配置</h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal" role="form">
        <div class="box-body">
            <div class="form-group col-md-3">
                <label for="search_type" class="col-sm-5 control-label">枚举值类型</label>

                <div class="col-xs-7 no-padding">
                    <select id="search_type" class="form-control" name="search_type">
                        <option value="0">岗位性质</option>
                        <option value="1">交易品种</option>
                        <option value="2">部门类型</option>
                        <option value="3">职务类型</option>
                    </select>
                </div>
            </div>
            <div class="form-group col-md-3 right-button">
                <button onclick="check_type()" type="button" class="btn btn-danger right-button">查询</button>
                <button onclick="add_type()" type="button" class="btn btn-success right-button">添加</button>
            </div>
        </div>
    </form>
    <div class="box-body">
        <table id="parameter" class="table table-bordered table-striped">
            <thead>
            <tr>
                <th>序号</th>
                <th>枚举值类型</th>
                <th>排序号</th>
                <th>显示值</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody></tbody>
        </table>
    </div>
    <div class="modal" id="parameterModal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h3 class="modal-title">基本信息字段枚举值动态配置-新增</h3>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" id="parameterFrom">
                        <div class="box-body">
                            <div class="form-group">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="add_para_type" class="col-sm-2 control-label">枚举值类型</label>

                                        <div class="col-sm-10">
                                            <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
                                            <select id="add_para_type" class="form-control" name="para_type">
                                                <option value="0">岗位性质</option>
                                                <option value="1">交易品种</option>
                                                <option value="2">部门类型</option>
                                                <option value="3">职务类型</option>
                                            </select>
                                            <input type="hidden" id="id" name="id">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="add_para_order" class="col-sm-2 control-label">排序号</label>

                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" id="add_para_order" name="para_order" placeholder="排序号">

                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="add_para_value" class="col-sm-2 control-label">显示值</label>

                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" id="add_para_value" data-rule="required(显示值必须填写)" name="para_value" placeholder="显示值">

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-primary" onclick="parameter_sub()">
                        保存
                    </button>
                    <button class="btn btn-warning" data-dismiss="modal">退出</button>
                </div>
            </div>
        </div><!-- /.modal -->
    </div>
    <script src="../../static/js/pages/parameter.js"></script>
</div>
</body>
</html>